package iscte.iul.dcti.pa2013_14.sqlib;


public class OracleSQLGenerator implements DataMapper {

	@Override
	public String convertType(Class<?> type) {
		if(type.equals(String.class))
			return "VARCHAR";
		else if(type.equals(int.class))
			return "INT";
		else if(type.equals(boolean.class))
			return "BIT";
		else if(type.equals(iscte.iul.dcti.pa2013_14.Employee.class)){
			return "INT";
		}
		
		throw new RuntimeException("type not supported - " + type);
	}

	@Override
	public String formatSqlcommand(String command) {
		
		return command.toUpperCase();
	}

}
